<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>DOCA-AR: doca_ar_pipe.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  $(function() { init_search(); });
/* @license-end */
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">DOCA-AR<span id="projectnumber">&#160;1.0</span>
   </div>
  </td>
    <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <span id="MSearchSelect"                onmouseover="return searchBox.OnSearchSelectShow()"                onmouseout="return searchBox.OnSearchSelectHide()">&#160;</span>
          <input type="text" id="MSearchField" value="" placeholder="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('doca__ar__pipe_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">doca_ar_pipe.h</div></div>
</div><!--header-->
<div class="contents">
<a href="doca__ar__pipe_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span><span class="preprocessor">#ifndef DOCA_AR_PIPE_H_</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="preprocessor">#define DOCA_AR_PIPE_H_</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span><span class="preprocessor">#include &quot;<a class="code" href="doca__ar__env_8h.html">doca_ar_env.h</a>&quot;</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="preprocessor">#include &quot;<a class="code" href="doca__ar__conntrack_8h.html">doca_ar_conntrack.h</a>&quot;</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="doca__ar__pipe_8h.html#a6c43b8e898524106d0ad1b7a66f06250">   20</a></span><span class="preprocessor">#define DEFAULT_TIMEOUT_US (10000)</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="doca__ar__pipe_8h.html#acee9a03f46e0b9058d34a54696ad80fc">   25</a></span><span class="preprocessor">#define MAX_AGED_CT_PER_POLL 16</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span><span class="keywordtype">int</span> <a class="code hl_function" href="doca__ar__pipe_8h.html#a942315150617f4baa557a7a4682327b2">doca_ar_pipe_init</a>();</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span><span class="keywordtype">int</span> <a class="code hl_function" href="doca__ar__pipe_8h.html#ac037e0ebcd3d7470f8cc370c746d4a1d">doca_ar_add_new_flow</a>(<span class="keyword">struct</span> <a class="code hl_struct" href="structdoca__ar__conn.html">doca_ar_conn</a> *conn);</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span><span class="keywordtype">int</span> <a class="code hl_function" href="doca__ar__pipe_8h.html#a89fff5af639225ba67128766e9abd411">doca_ar_flow_aging</a>();</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span> </div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span><span class="preprocessor">#endif </span><span class="comment">/* DOCA_AR_PIPE_H_ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="adoca__ar__conntrack_8h_html"><div class="ttname"><a href="doca__ar__conntrack_8h.html">doca_ar_conntrack.h</a></div><div class="ttdoc">simple connection tracking table module for recording flow info and modifying headers of packets forw...</div></div>
<div class="ttc" id="adoca__ar__env_8h_html"><div class="ttname"><a href="doca__ar__env_8h.html">doca_ar_env.h</a></div><div class="ttdoc">build base enviroment of DPDK and Doca-Flow</div></div>
<div class="ttc" id="adoca__ar__pipe_8h_html_a89fff5af639225ba67128766e9abd411"><div class="ttname"><a href="doca__ar__pipe_8h.html#a89fff5af639225ba67128766e9abd411">doca_ar_flow_aging</a></div><div class="ttdeci">int doca_ar_flow_aging()</div><div class="ttdoc">aged expired conns from doca-flow table(FDB) and del them from conntrack table</div><div class="ttdef"><b>Definition</b> doca_ar_pipe.c:326</div></div>
<div class="ttc" id="adoca__ar__pipe_8h_html_a942315150617f4baa557a7a4682327b2"><div class="ttname"><a href="doca__ar__pipe_8h.html#a942315150617f4baa557a7a4682327b2">doca_ar_pipe_init</a></div><div class="ttdeci">int doca_ar_pipe_init()</div><div class="ttdoc">build needed pipe</div><div class="ttdef"><b>Definition</b> doca_ar_pipe.c:271</div></div>
<div class="ttc" id="adoca__ar__pipe_8h_html_ac037e0ebcd3d7470f8cc370c746d4a1d"><div class="ttname"><a href="doca__ar__pipe_8h.html#ac037e0ebcd3d7470f8cc370c746d4a1d">doca_ar_add_new_flow</a></div><div class="ttdeci">int doca_ar_add_new_flow(struct doca_ar_conn *conn)</div><div class="ttdoc">add entry to the vxlan pipe so that ar can come into effect</div><div class="ttdef"><b>Definition</b> doca_ar_pipe.c:283</div></div>
<div class="ttc" id="astructdoca__ar__conn_html"><div class="ttname"><a href="structdoca__ar__conn.html">doca_ar_conn</a></div><div class="ttdoc">context of a connection</div><div class="ttdef"><b>Definition</b> doca_ar_conntrack.h:38</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="doca__ar__pipe_8h.html">doca_ar_pipe.h</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0 </li>
  </ul>
</div>
</body>
</html>
